<script language="javascript">
	function back(){
		document.location="<?php echo site_url("dosen_matkul/index/" . $id); ?>";
	}
</script>
<?php
echo form_open("/dosen_matkul/form_dosen_matkul/" . $id . "/" . $parameter, array("name"=>"form_dosen_matkul","id"=>"medic_form"));
if($parameter == FALSE){
	$kelas	= set_value("kelas");
	$matkul	= set_value("matkul");
} else {
	$kelas	= $value["ID_KELAS"];
	$matkul	= $value["ID_MATA_KULIAH"];
}
?>

<p>
	<label>Nama Kelas</label>
	<select name="kelas">
		<option value="">-- Pilih Nama Kelas --</option>
		<?php
		foreach($qkelas as $row){
		?>
		<option value="<?php echo $row["ID_KELAS"]; ?>" <?php echo ($kelas == $row["ID_KELAS"]) ? ("selected") : (""); ?>><?php echo $row["NAMA_KELAS"]; ?></option>
		<?php
		}
		?>
	</select>
	<?php echo form_error("kelas"); ?>
</p>
<p>
	<label>Nama Mata Kuliah</label>
	<select name="matkul">
		<option value="">-- Pilih Nama Mata Kuliah --</option>
		<?php
		foreach($qmatkul as $row){
		?>
		<option value="<?php echo $row["ID_MATA_KULIAH"]; ?>" <?php echo ($matkul == $row["ID_MATA_KULIAH"]) ? ("selected") : (""); ?>><?php echo $row["NAMA_MATA_KULIAH"]; ?></option>
		<?php
		}
		?>
	</select>
	<?php echo form_error("matkul"); ?>
</p>
<p>
	<input type="submit" class="btn btn-primary" id="submit" value="Simpan">
	<input type="reset" class="btn btn-primary" id="submit" value="Reset">
	<input type="button" class="btn btn-primary" id="submit" value="Kembali" onClick="back()">
</p>
<?php echo form_close(); ?>